set flags for compilers not per platform

fix #120