removed some lib deps and some compiler warnings