gcc: parameterise the configuration step

Building gcc on OSX 10.9 and Ubuntu Precise (64bit) appears to be have
differently. So breaking out the configurations for each platform.