Fix incompatible types warning from VS 2005 (Oliver Schneider)