Bundle fixes

FreeImagePlus didn't have its library paths being set properly and
the _TESTING targets were failing because they assume USE_BUNDLE_SRC isn't
being used.

This is a redo of pull request #358 which got messed up somehow.