Added debug flag to compilation of hr.cpp