cmake: remove unsupported flags