Fix detection of cross compilation
Add TravisCI config file