Fixed conditional compilation issue on OSX.