Error on missing function prototypes with gcc