patch to allow building with gcc 4.3