Add support for Travis CI

- added Travis
- added workarounds for older compilers
- ported tests to C++03
Add test for a specific case