Fix regression on OS X introduced by b53a42309061876adf275c82ff87df3981fe1bf2

OS X has some issues with __attribute__((weak)), see http://glandium.org/blog/?p=2764 for more information.