Static link to remove C library dependency