adjust to build on darwin