Fixed Release build errors.