This branch fixes compilation errors and warnings for configure options --enable-autodiff and --enable-octave.