Make build work for mac OS