Updated defines in makefile.

Legacy define removed, ES added.
Fixed broken scaling with rotation