gcc-3.x does not have weakref.

This attributes has changed back and forth a lot. For the record:

* gcc-4.x does not support alias for undefined symbols but support weakref. (testcase: mp101, gcc-4.1)
* gcc-3.x does not support weakref but instead allows aliases to undefined symbols. (testcase: mp04, gcc-3.3)