Fixes various compiler warnings.