Who created the stockade in Treasure Island?

flint and his crew did before Jim arrived