Warnings fixed and startup log messages reordered