link debug version of libraries if plugin is compiled in debug mode