Minor bugfixes

- improve termios initialization
- use version from autotools
- fixed naming in header declaration