Add build flags for darwin