Change RECT to use LONG to match win32 standard headers and fix format strings to use %ld for RECT elements.