Take care of vala static methods
Call the c version correctly

removed some commented code