core: Fix compile warnings.