Fixed a few warnings and hints.