Fix mixed malloc/walloc
Fix compiler warnings