fixed some errors in Makefiles when installing
added support for new [sessions] configuration options