Temporary fix for R kernel

There is a current build time issue with rzmq and g++ (https://github.com/armstrtw/rzmq/issues/12) that was causing the demo image builds to fail. This installs the patch from https://github.com/armstrtw/rzmq/pull/14 and does some refactoring of the overall R setup.