Revert "fix Mac OSX build (and remove 'weak link' warning)"

This reverts commit 146bbefc03fe87433a5516bf9ae4eab7c832dc4a.
ftello64 -> ftell and fopen64 -> fopen (to make Mac OSX happy)
disable some warning (no idea why weak_link is there)