Fix makedistcheck by creating constants

This adds some extern variables and constants in favor of straight
macros.  It's not 100% elegant, but it fixes make distcheck, which was
broken.

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>