Cmake fixes

On my mac, I needed to add this fix to the CMakeLists.txt in order to get it to compile.  Maybe a version-itis thing?  Anyway, If you guys don't think its a good idea, pass on this one.  I would test on your systems before accepting the pull request.