Added autolibs script flags

This solves a lot of dependency issues.