Fix some compiler warnings in strict C89 mode