gcc specific flags and use of wrong parameter name

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