A number of small chages to allow the library to build on FreeBSD(x86), Solaris(x86) and Solaris(sparc)