binding: fix regex compilation on OSX