fixing build issues and moved dependency to root pom