getting classes to link in lib