hal/dev_io/dev_io_core.*: update to use new export system

This commit fixes #3 #30 #31 github issue. It is still missing
a more consistent client side API.