Apparently parts of afs still require lwp even if you have pthreads. Why the 1.5 branch? It doesn't look like amd64 support was merged. Are you using process.amd64.s? What happens when you add -fPIC to the compile options?