Fix ENV_OPT to compile mips in console mode
Repair Makefile