fix "error: integer constant is too large for 'long' type" error on gcc 4.4.7 (n/w)