Fix compilation errors against gdc 4.6.3