Fix some function declarations so that all symbols are exported correctly.