Fix compiler warnings

Mostly unused vars