compiles and install libraries