Added OSX/Linux cross-compilation compatibility fix.