Made the tests link Halide as a shared library

This way they're faster to build and don't take up a gigabyte of disk
Merge branch 'master' of github.com:halide/Halide
The default build now builds test_internal correctly