now compiles on gcc-4.6