Fixed compilation error with makefile.

Directed g++ to compile with C++11 standard in mind. Now also
ignore .a and .o files.