Remove external dependencies; make the build self-contained