Clean up COMPILE_DEFINITIONS
Move Travis build script to external script