hack to get cmake working for darwin/x86_64. not fit for public consumption