stdexcept should be included in hdkeys.h