Added flag to check if dlopen is available
Added regtest for LOAD