Magic Haven: Escape From Imhotep
Making matches over some tiles gives you resources such as crystal. You use these resources to build an enchating little settlement for the magic creatures you've rescued.
Each building is beautifully rendered and endows you with new powers. Yes, you need magic powers if you are to foil Imhotep and banish him from this world.