Minor cmake fix

Just a minor fix for OS X (and possibly Linux).