small linux fixes
Merge pull request #286 from est77/master

small linux fixes