Add workaround to enable compilation on Ubuntu.