Adds support for windows and linux. Fixes issue #1