Cleanup buildfile and update dependency versions; fix lint errors