Add wrapper for some non-portable C functions
Fix gcc compiling issues
Remove binary file