Not sure if glue is the answere to your problem, but if you must use glue try this stuff
PL Sealants, Adhesives, Construction Adhesives
Loctite also has a good product.
Any hardware store that caters to contractors can recommend a top notch contruction glue in a tube.
MAKE SURE YOU READ THE INSTRUCTIONS CAREFULLY BECAUSE SOME THIS STUFF HARDENS FAST AND ONCE CURED, IT WILL BE IMPOSSIBLE TO REMOVE WITHOUT CAUSING SOME DAMAGE.