added -std=c++0x to Makefile