Load libraries in right order