some patches to improve functionality. PR: ports/125595 Submitted by: Dax Labrador <semprix@bsdmail.org>