CMakeList.txt fixes, take two

Now they actually do what's intended...

Also, -O0 for 'debug', because even -O1 optimizes out arguments
and whatnot when inlining functions, at least with Clang.