check compile on mac