Changed makefile to use libdistributed's new makefile