src/common.h: include stdlib.h - fixes build on FreeBSD

Builds and works fine on FreeBSD 10.1/amd64 with this small tweak, using CXX=clang++.  Also build tested on Debian stable/x86-64.