get this to build on modern G++