Travis support

This PR fixes build in Ubuntu 12.04

Unfortunately some tests fail in Travis therefore I have disabled them to avoid false build failures. :worried: 
I'll look at it later after enabling Travis in other modules...
Compilation failed with some strange error (cannot find some symbols from built libraries), no idea what exactly was wrong but this reorder fixed that.