cmake: added optional hardening support
cmake: additional compiler warnings