added makefile that works for native builds as well as emscripten builds