Changed library to be statically linked

Changed library to be statically linked