Revert "Put statfs before statvfs to fix build on freebsd."

This reverts commit 86f039033f00b237a91fc23d44cd0f4b48cc86eb.
Use configure to set if we are to use statvfs to get the fstype.