Fixed build for mac.