gt_pagesize changed type, splint fails

linux pagezise is of type ```long```, windoof seems to be ```unsigned long```. As gt_pagesize returns ```unsigned long``` some files failed to splint after the changes.

this pull request also includes some minor cosmetics etc I came across without them being worth single pull requests.