Fix compilation trouble on Ubuntu

For some reason, Ubuntu cares about the order of arguments to cc