Slowly switching to cmake for portability (and integration tests with travis)