Possible fix for weakref/JS bug on GCC 4.6 - issue #76

This seems safe (forcing it to use the alternative branch compiled and didn't cause any obvious JS bugs) and should close #76 so older distros can still compile the next release. Could someone check it over and merge if it looks sound, please?