Fix build errors

These are all fixes I implemented while building the project. I also made a small script for replacing the obfuscated module names using a list of strings extracted from the release version, maybe that's better than releasing the full plugin.