add static build option to cmake / thumbs