configure: Add check on function prototypes when debug is enabled