Compilable but untested version of Hessian calculation (-DNEWAMB)