Add automake 1.13+ test outputs to .gitignore
Disable babl-gen-test-pixels when random is missing

babl-gen-test-pixels is only needed to regenerate the source
pixels and doesn't need to be run as part of the normal build
process.
tests: Use rand when random is unavailable