So, basically, what you'll want to do is:
1. Salvage all the pieces of makeup that you can.
2. Put all those pieces back into the compact and cover the whole thing with a layer of saran wrap.
3. Smash the sh*% out of all that makeup even more so, creating a fine powder.
4. Remove the saran wrap and add a few drops of alcohol to the powder.
5. Smooth the entire compact and allow to dry.
6. Voila - your compact is fixed.