Remove pthread binary from tests dir, add source file