Using std::pow inside stan::math namespace

This seems related: https://github.com/stan-dev/math/pull/1684 . Just adding it here for whenever we discuss this again in the future.

Edit: Also relevant: https://github.com/stan-dev/math/pull/1765