compilation warning fixes