Warning fix for some platforms