64bit compiler warning fixes