tweaks to cmake config to enable compile with OSX

via Clang
Two useless methods removed. Thanks, Clang!