Adding example for compiling and creating libraries