fixed makefile dependencies and some compiler warnings