increased tolerance in automatic differentiation tests
added install path to libaries on Mac (patch by Benjamin Seppke)