Portability fixes for Linux and headless sessions
Merge pull request #3 from siddharthab/master

Portability fixes for Linux and headless sessions