fixed build for macs