Changed Stochoptim to run with older R libraries