Update for IO API update

The error handling needs to be redone still.
extra::sync was moved to sync crate
Merge pull request #5 from zr40/sync-crate

extra::sync was moved to sync crate
Build static and dynamic libs
Update debuginfo flag
Make Makefile variables early evaluated
Update for hex move
Stop including debuginfo by default
Switch to extern crate
Update to new mutex API
Remove useless Option wrapper
Stop complaining about FFI type names
Remove deriving(ToStr)
Add SSLv2 support behind a cfg flag

Many OpenSSL distributions have SSLv2 support compiled out, so it should
be opt-in.
Properly propogate errors
Add a configure option for SSLv2 support
Remove unneeded libextra dependency
De-~[] ssl
SSL session closure should be treated like EOF
Support the dynlock API

Also actually run tests after compiling them >_>