Cleanup configure and also weaken static library symbols