I've used some of this to fix plasterboard to brick:
(link to Insta Stik Expanding Foam Grab Adhesive)
Very good it is too. Would it be suitable for fixing boards around a chimney breast, though? This is in the attic and the flues aren't (and never have been) open, and the only fireplaces likely to be used are 2 floors down, on the ground floor.