cmake: check for minimum GCC version