OSX 10.5 SDK build fix - Picked from 0.8 (Thanks Gavin: https://github.com/bitcoin/bitcoin/commit/c8c2fbe07f1a5475aea3a2680af9130558c7e5c8)