Fixes some compiler warnings