remove return statements from end of functions returning void. some formatting tidy-ups
actually follow Bret's suggestion about using WM_Lock() functions,
and reapply 83563637 in a modified form:  do not initialize gauss
and newton tables unless WM_MO_ENHANCED_RESAMPLING is set, so that
we steal ca. 300k less memory upon library initialization. (I was
possibly half asleep when I said that I can't use WM_Lock() stuff
for this...)