Linux compatibility implemented

Compilation through Cygwin proved successful, as well as testing the
application under Cygwin. Will test on an actual Linux box soon.