fixed compatibility issues with libc on Linux
Merge branch 'master' of https://github.com/pimms/scrap