scons: add support for MAJOR_IN_{MKDEV,SYSMACROS}