Work on the emulator libs and bug fixes.