Replaced NOTSET from typedefs.h by local solutions.