modified cmakelists for dll usage