build "archive" dependencies properly (e.g. for mysql/oursql)