Fixed warnings and errors for nightly.