Move NULL_HANDLE & friends to q_common.h. Fix warnings by using
NULL_HANDLE instead of NULL.
Merge pull request #316 from archSeer/master

NULL_HANDLE & friends
Changed the cached variables to options (they're the same, but expressed
differently).
Fixed warnings about FLT_MIN and FLT_MAX redefinitions.
Merged some MP fixes to cmd code for SP.