fix implicit declaration compiler warnings