use ocamlbuild instead of make
get rid of unused variables in emulator