fix lua/cairo/imlib2 linkage issues