Fix compiler warnings on reorder, unused, const.