Fixed a plugin filter problem and added export defines for Windows