Fixed Java warnings relating to parameters not being void * for free functions