fix opencs build on gcc 4.7+