Include types.h after stdint.h to accomodate for older distributions. This fixes compilation on CentOS 5.

Signed-off-by: Gerben Meijer <infernix@gmail.com>
Merge pull request #2365 from infernix/centos5

Include types.h after stdint.h to accommodate for older distributions. 

Reviewed-by: Loic Dachary <loic-201408@dachary.org>