Fixed Wincompatible-pointer-types-discards-qualifiers compiler warning.