Set output dirs for runtimes and shared libraries.