compiling fixed for os x