wgl: split device structs, move swapbuffers to shared