Fixed bugs and added support for Ubuntu 14.10 and SLES 12