Include common.h before any system headers.

This should fix some problems building on AIX.