Install dependencies at build time

Final fix for #290