Fixed build.gradle for building library