Added Linux support, minfixes