how would i go about creating my own library? ex: one like OpenGL, or some thing? is it like a .dll?