compile on mac and windows