openssl defaults to build static, but if you need shared lib
./config --prefix=$HOME shared
will be enough
openssh, said in some mail list for 3.8p1
i don't know if this would work.
./configure --with-privsep-path=$HOME/empty --with-ldflags=-static --with-ssl-dir=$HOME/usr --prefix=$HOME/usr