Tried fixing some implicit declaration errors