Build optimizations + Makefile format
cxx2js: replace text instead of outputting