Assorted code cleanups
- Variable scope reductions as recommended by cppcheck
- Replace custom copy of
GetReq
macro with call to Xlib 1.5's_XGetRequest
- Handle implicit conversion warnings from clang
GetReq
macro with call to Xlib 1.5's _XGetRequest