Make tpie compile on MacOS / gcc-4.8.1