call unistd.h in load_data_for_complexity and add automatic linking to included samtools