added <cstdlib> to hivc.cpp