Some changes to compile on recent OS X

These changes let the current wallet build on OS X Maverick, with a fresh generic install of Xcode and Qt 5.3.
More tuning is needed to improve backwards compatibility.