PE-262: Fixing enabled flag when plugin is compiled

Tested locally and compiled in vagrant.