fix remaining build warnings (gcc 4.8)