Set required libraries as either preloaded or dynamic