Compiles on Mac OS X
Fixed mac build