Updates so that the code builds on mac