MacOS X port.

Details :
=========
Runs but some psd are not loaded correctly.