add sed hack to fix compilation on hardened