Fixes compiling on mac