Make it more possible to override cflags/cxxflags

Unfortunately the user has to tell cmake the custom flag
'-DCFLAGS=...', because I did not find a way to get
CMAKE_C(XX)_FLAGS in the desired order without breaking
something else.  Now `./dev-build -DCFLAGS='-O0 -ggdb'`,
for example, works to change the opt/debug levels.