Patch issues with new commonjs loader, fix little bugs causing module crashes on twitch