Fix tests to compile again - add missing headers to W32, call  correct process-id-getting function

https://bugzilla.gnome.org/show_bug.cgi?id=725513