Fixed permissive build warnings