Stable Sample Compression Schemes: New Applications and an Optimal SVM Margin Bound