Use boost::thread in LibassSubtitlesProvider

libstdc++ 4.7's std::thread is missing sleep_for.
Fix compilation with gcc 4.7
Make automation depend on libaegisub
Add lua cflags for auto4_regex.cpp