x11-toolkits/gtk40: properly use LIBVERSION like gtk30
(cherry picked from commit 137d9eda142e6a46eb9451202044b29668f8ec04)