Cleanup compiler warnings on Solaris and newer OSX clang compilers.

Add Large File support on Solaris