Fix warnings in Release