chg: reorganize files
add: test dynamic library cpp -> fpc
fix: QueryInterface calls AddRef() for its output