fixing bug in build where using vars for classes and libs