Add workaround for <gcc-4.9.1 reference binding bug

This could be gcc bug #61500.