Fixes for deps generation on linux, linker flags