build fixes so secureshare uses gradle better