Fixes for building in Darwin.