The original version is built on Visual Studio. Modifying to compile on Linux