add cxx flags to thumbs