Warning fix

This enables and fixes some compiler warnings