fix passing our compiler flags

with help of gentoo patch