build: use a link instead of changing current directory when compiling