Add static to weak callback

Seems to require the static keyword there.