Move the '-Wall -Werror' CFLAGS to the end of the configure script so that
they don't confuse cofigure it self. They caused lot of test to fail for me resulting in faild build. Change the configure tests for mediaLib to wokr correctly when it isn't located in you default path or in LD_LIBRARY_PATH. Should now work with Sun CC too.