A few more functions and DWORD now works

Seems good enough for Pete's OGL2. Also changed some sprintf to just
strings.