Fixed implicit declaration warnings