BUG: Use 'll' as the default length specifier for long long.

The previous default was 'L', which seems gcc specific, whereas
'll' is the now recognized standard and is also accepted by gcc.

Closes #5027.

Rebased for backport to 1.9.x.