Work around unimplemented features in gcc 4.6.3