Fixed the dependencies for building