Add 1.8.7 support.

There are still some projects that use 1.8.7 it seems.