Added compiler option to the plugin

As well as some fixes so it can be compiled in Windows.