[WIP] Fix compiler warnings

It's work in progress.