various compiler warning fixes