Move
void mono_dl_register_symbol (const char* name, void *addr);
just outside of the first
#if !(TARGET_IPHONE_SIMULATOR) ... #endif // !(TARGET_IPHONE_SIMULATOR)
block.
This will solve the compiling issues and run in the simulator. It worked for me!