Fixed all compiler warnings.