Fixed several compiler warnings.