Added memory pool support to universal graphics library.