Ported to Visual Studio 2013
Fixed a bug on unix systems
Merge pull request #20 from zschoche/vs2013_port

Vs2013 port