WD40 is some neat stuff, but penetrating oil will trump it in this situation. Something like PBlaster is good. But, once you get a good purchase with the pipe wrench, it should come apart.
Important note - I'm not a pro
Retired Defense Industry Engineer; Schluter 2.5-day Workshop Completed 2013, 2014