updated shared library loader to deal with 32-/64-bit mac natives