BUG: fix non-c99 fallback for np.inf input to log1p/expm1

closes gh-4225
Merge pull request #4416 from juliantaylor/log1p-expm1-no-c99-1.8

BUG: fix non-c99 fallback for np.inf input to log1p/expm1