Fixed various compiler warnings.