Move types.h include before ifaddres.h for u_int declaration

On FreeBSD, ifaddress.h needs types.h for u_int and others. Move the types.h include before the ifaddress.h include.