cmake: enable extra compiler checks