Add an index on images.filename

See bug #9872.
OSX: only clang likes -march=native
Disable -Werror for CXX for now