making it compile on mac