fix mistake where log_debug() is by default outputing to stderr
up the strictness of compiler, and fix warnings.
corrected lambda style.
stop infinite recursive loop caused by error handling code not returning.
only check spend_height > from_height if the spend exists.
added stuff needed for libtool to properly link
rename coinbase_script() to raw_data_script()
some output scripts are unspendable and cannot be deserialized. instead set those output scripts as opcode::raw_data (like with coinbase scripts).
Fixes for testnet script_version and wallet import format prefix.
comment out assert which can sometimes trigger.
oops! add missing check. corresponding Satoshi code:

    // Hash type is one byte tacked on to the end of the signature
    if (vchSig.empty())
        return false;
    if (nHashType == 0)
        nHashType = vchSig.back();
    else if (nHashType != vchSig.back())
        return false;
    vchSig.pop_back();

libbitcoin tries not to use function selector parameters, but we still need to check the signature.