small changes for compiling on mac