Fix handle casting in debug messages.
Change statvfs64 to statvfs and leave the build system configure it, so
it doesn't break on OS X.
Enable pkg-config on OS X.