also fixed passing WM_JOB_TYPE_ANY to WM_jobs_kill_type()
@Brecht Van Lommel (brecht): Thx for checking!
I'm still checking 2.8 though, I resolved the merge conflicts, but it still crashes.
This is unrelated to above diff (I think), but somehow WM_window_get_active_scene() will still return the 'old' scene [which causes a crash in BKE_workspace_view_layer_get].
Trying to hunt that down, before I commit and do the merge...