fixed all warnings and some #include