hash: fix build with gcc 4.4 and 4.5