Fixed compilation on mac/homebrew version of cmake