Fixed Windows warnings.
Fixed name clash with REGISTERED macro from windows.h.