make it compile on mac