Windowing stable. Updated to work for 32-bit machines with long long