Fix unix build and bool convertion for plugins.
Fix __unix__ and bool convertion.