compiling version of lib