This happens with gcc 4.6.0 for me.
atol is defined in , which is not included in OSD_MAllocHook.cxx or its headers. This small patch makes that inclusion.