Moving library loading code around so it doesn't wipe out any existing native libs