Buildfixes for Mac.