fix sha compilation on gcc 4.4