Put compiler checks in their own cmake module