scons: fix the build in the case that one of the optional imaging libraries is not found
scons: ensure optional imaging libaries are build if requested when cross compiling