Extracted some defines in a header file.