fixed small incompatible types issue that occured while trying to compile for windows