Fix distributions build