You have build your program as a derivative, based on existing open source software component, licensed to you under the GPLv3.
In case of distribution, your program must be licensed by you under the GPLv3.
If the component was received “under the GPL” (without version number) you may use the same wording or specify the GPLv2 or the GPLv3.
This is applicable when your program can be considered as a "Derivative Work" of the software received under the GPLv3.
The notion of "Derivative work" is depending of the applicable copyright law. Modifying the source code (for example, inserting new functionalities, changing the way software operates, localising etc.) will normally be considered as producing a derivative. Simply “using” a component or linking two components (without changing functionalities or operation) or aggregating them without changing their source code, should normally not be considered as creating a derivative (in such case each component can be licensed separately).