Update gitignore.
Fix prototypes and make sure the callout functions have the right
signature.