fabs => ABS to keep Windows happy.
vector::reserve() => vector::resize() to keep Windows happy.