This might be a bit insensitive, but you just need to grow a spine. You can't make everyone like you. No matter who you are, what you do, who you're with, etc., there will always be someone out there that will find something they don't like about you. Heck, even perfection is cause for hate by some.
How to deal? Focus on those who are supportive of you. Over time, learn that you have many good qualities. Learn to be proud of yourself without being too prideful. Do more and be confident in who you are and what you can do. After you can do this, those tactless comments are nothing more than dirt under your bed: there so you have the choice to address them or ignore them, but not in your way of doing anything else.