Warnings and error fixes.