fixed various complie time warnings