Fixed some warnings and make dependencies.