Fixes build setting such that test for iOS can run

Setting in the newly added CPRegexpRecogniser is wrong and tests for iOS cannot be run. This PR fixed that.