Common.h: fixed bugs on the typedefs and added some more handy #defines