Improve compilations flags look-up