Adds support for older engines in tests.
Moves building/scripts to Makefile.
Includes android in testling config.