Changes to make host plugin compile on Windows: * Change IO code to be portable * Adjust Makefiles Allow plugin to work partially when libffi support is not found dynamically (compilation works fine even on Windows because of the wrapper support).