Create defs.h

Contains some useful definitions.