Return 1 when check-dependencies.py is missing required deps

Also print warnings and errors to stderr. Fixes #325