Making things compile on mac