Fix devsim/devsim#2
Set proper compiler flags for g++-4.7