Fixed C files compilation on OSX