I solved it myself by adding the following in my PRO files
QMAKE_CXXFLAGS += -std=c++11
Determine which flags are required by compiler (and it looks like the error message makes two suggestions). I am posting this here for any one who need this in future.
Bookmarks