use unsigned char instead of u_char

u_char is non-standard
make stuff compile on Windows (not implemented)
make stuff compile on Windows (not implemented)
remove unnecessary header file
guard timer module for Windows
more Windows compilation
use gt_pagesize()
use gt_pagesize()
remove unnecessary includes
use gt_pagesize()
%Lg -> %Lf, seems more idiomatic