Rails app deployment: pg_ext.so: Undefined symbol: rb_thread_select

I have a RoR application which I used to deploy to Bluemix using cloud foundry. Up to now this worked fine, however, for a few days I get the following error during the deployment of my app: ruby: