fix Makefile for compatibility of cxx11