default_dbg needs to be rewritten to support not coming first
currently if -libs or lib come before -dbg then default_dbg will be faulty as it only looks at $pkgdir
currently if -libs or lib come before -dbg then default_dbg will be faulty as it only looks at $pkgdir