Add the RTLD_GLOBAL option to dlopen

This enables libraries that depend on other libraries to be openable by making
the symbols of loaded libraries globally available.
Added isNull emulation plus another primitive
More primitives
Fixed semantics of isNull emulation to properly wrap in IO