fixing static builds