Yet another male perspective here. There are a good number of individuals like
>>3 mentions, but sometimes their motives aren't the same. Like, for example, I tend to flirt a bit with a good number of my female friends, but neither of us generally mean anything serious by doing so. In all honesty, we tend to just joke around like that because it's fun and a pretty easygoing self-confidence booster. Of course, that being said I can't flirt the same way with strangers very well, simply because it's hard to tell straight away if their trying to be serious or not.
In general, I'd say just play it cool and take the compliments until you know exactly where the person is coming from. That is, of course, unless you're aiming to learn the art for those "other" reasons.