Eliminate most compiler warnings in pmap, fix nasty bug with cpm_allocate()