Fixed undefined reference to reg_dump()