Clean up GCC warnings

These warnings are only visible on 64-bit build because -Wall is added
into CFLAGS, while 32-bit build does not. The summary of the warnigns:
* unused-variable
* maybe-uninitialized
* parentheses
* uninitialized