add SOURCE_DIR to pre-link environment