update patches to use ghcjs_HOST_OS instead of __GHCJS__
add proper GHCJS support to base with ghcjs_HOST_OS