MaxOptim won't link on MacOS