compile on mac os X