Update buildfile for working on OSX and Windows