fix 'unused return' of readlink when compiling