wined3d: Make some functions and variables static.