cmake: allow disabling of tests
cmake: allow predefining cxx flags in toolchain file