Update: The original link is gone now. I found a clone and Freezing it.
In general, follow this but keep in mind:
My installation path is to /usr (not /usr/local).
To install libgdiplus: use X11 headers installing libx11-dev, and libfontconfig1-dev, libxft-dev