adapt the project so that it can be build with gradle