move compile() out of constructor and allow publicly testing getThirdPartyBlocks