You cannot overcome this limitation by changing the code a bit. The GPL specifically protects against this, and, arguably, it is the central idea of the GPL.
Your only options are:
Change your license,
Ask the author if they will license their code to you under a different license, or
Find or create an alternative implementation with a BSD-compatible ...