build and link static libraries without libtool