Setup compiler flags and toolchain