added symlink support. fixed prefix and builddir