Making build work on Mac