Fix for Pika 0.9.9+ CPU polling issue

As per #216, splitting PR into multiple PRs.