Move gcc version checks from pkg_pretend() to pkg_setup()