Pairs: Fix gcc4 build some more, include stdlib.h