Support static methods in interface.
Close #573
Force build WPF for 3.5.
Fix installer build for 4.0.