forward declaring it as class CTxDestination; didn't work. there are probably other ways but I'm not so well versed in template techniques.