mjs uses paths everywhere, not dirs, so the same goes for the pluginpath now.
Fixes compiler warning.
Missing included, stricter error checking.
Build improvement: Include global flags everywhere.
Include cleanup in http_controller.