Change createTransport return type.

createTransport can't throw any exception, so
type is changed accordinly.
Fix warnings.
Merge pull request #21 from qnikst/drop-void

Use ZMQError in result on the newTransport function.