Support for custom build dependencies and separated link and compile flags