Allow plugin subdir compilation
Add helper functions to activeState
Minor fix