Fixing a few compiler errors, thanks to bluescreen_avenger at verizon dot net