Add poco, support patches, fix tasks inputs/outputs