Modified for Linux compiling, Test on Windows needed