make gcc specific flags only present when gcc is selected

Signed-off-by: Mattias Andrée <maandree@operamail.com>
make gcc autoselected if CC env is not set

Signed-off-by: Mattias Andrée <maandree@operamail.com>