Added p2sh support for addOutput
Added compiled version