Added a configure script for system dependencies

This is very important for proper downstream Linux packaging. Otherwise you will need to patch this manually which is very annoying. Note: this does not unbundle any native dependencies from packages created on our Ubuntu build server with our own hacky packaging scripts.