[ctypesgen] Enable errno on library load

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Raise exceptions instead of returning error codes

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>