c++ Dynamic class loading example