src: add support for character devices
Merge pull request #142 from santigimeno/character_devices

src: add support for character devices