Fix function prototypes (fixes php 5.5 errors)