Generate dependencies while compiling if supported by compiler