Issue with szip was related to fpic not static/shared.