add flag -lstdc++ to CFLAGS