add flags for compile main.cpp
update travis.yml for compilable with llvm