build self-contained application