Automatically resolve missing dependencies in Ubuntu

This may not be so straight in case of Cygwin.