Prepare lib_dirs for configurability