wined3d: Make functions static where possible.