Fix passing debug options for gcc