fix asserts to support NDEBUG
enable NDEBUG define
Merge pull request #300 from dryabov/bitcoin-ndebug

Fix support of NDEBUG