port to linux x64.
make it working both on windows & linux.