Add support for Travis CI

- added Travis
- added workarounds for older compilers
- ported tests to C++03