fix gcc4 build