A template for binding to native libraries