Fixed build, made linking static