added -std=c++11 to c++ compiler flags
added java compiler