Added travis-ci and appveyor and added gcc/clang build options.