reNX.cpp: Implement tests on Windows. Code cleanup. Use /W4 in MSVC.

Signed-off-by: angelsl <hidingfromhidden@gmail.com>