makefile: add game and editor targets
editor: convert to C++ and fix warnings