BUG: Define INFINITY if it hasn't been already

This probably became a problem when I reordered the libraries for
static builds.  Found this bug on Windows.
TODO: Make sure it doesn't break linux builds.