flags to make gcc happy as well as clang
updated