building a cuda library