linking to class library and executing static functions and slots