Fixed mac compiling problem