Extracted the C++ classes that wraps dl{open,sym,close} to their own hpp/cpp files, to be more easily used seperately from the examples.