fix log format to avoid warning
Add configure checks about sys/statfs.h. Failed build on MacOS X reported by Rune Lynge.
Merge branch 'master' into portable
sync with latest asr changes