Enabled namespaces

Issue ev3dev/ev3dev#189
fix ev3_ouput_port_get_polarity function

Thanks @rhempel for pointing this out.