Warning fixes

Fixes some warnings at compilation, minor stuff.