Don't use wmem_file_scope where not necessary

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Include header file for AF_ values on Windows

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>