enabled extra compiler warnings and fixed resulting errors