added common.h

to resolve NULL is undefined errors.