remove htcpnpmgr and fix build