Compilation errors with boost 1.56 (a second try)

Trying again with pr #318. Same story, only this time I've made sure things work on both my mac (boost 1.56) and linux (boost 1.55) machines.