update from mr-orange
patched hardlink from @pwr for windows support