Fixed compatibility with Windows. Added missing dependency.