Fix warnings for old build setting