Fixed compiler warnings due to missing prototypes