Fix f_system on Mac OS X