Fixed modern compiler warnings