Various fixes for C89 compilers (Win32) and silence some warnings
add a TODO comment about srl_dump_nv()