Adds autostart feature for Windows and Linux

For issue #136