Makefile changed for app and emulator

The makefiles for app.mk and emulator.mk have been changed to compile and build the dynamic shared emulator library.