Add static to weak callback
Merge pull request #95 from rvagg/weakfix

Add static to weak callback