Fixed libX11, libXrender bindings for macos and linux.