Fix for Snow Leopard

Noticed Simulator Bundler does not work on Snow Leopard, because

* a) dlsym(RTLD_DEFAULT, "main") returns NULL,
* b) strnlen(3) is not available on Snow Leopard.

I made NXGetLocalArchInfo() as fallback for a), and added a naive implementation of strnlen for b).