improved build dependencies, fixed some warnings