Fixed the shared filter library, which was not being built correctly. No stub libs were being generated since the import DLL_EXPORT was not defined.

Made the filter CMakeLists.txt file a little more abstract with variables and such.