How to sign non-standard transaction
You will have to build the transaction yourself instead of relying on wallet software. You can either create it all from scratch and use pushtx or use an online API that accepts explicit input references to previous outputs. For example (check the last paragraph):

http://dev.blockcypher.com/#transaction_skeleton