Fix compilation of a few plugins.
Fix installation dirs.
Change environment paths, using a new file: paths.mk