Moved runtime checks out of GDIPlus constructor

Move these runtime checks in order to avoid attempting to load
libgdiplus.so if it's not necessary (like in a web app)