Here's what you need to consider when buying a fixer-upper.