Fixed rendering bug in windows.

Added propper includes and checked timings. Timings now line up between
operating systems.