setup.py: Fixed a problem when compiling test programs.

Change-Id: I37cf658c107bb9c2744725cda450128ed77fd6b5
Reviewed-on: https://iffwww.iff.kfa-juelich.de/review/94
Reviewed-by: Christian Felder <c.felder@fz-juelich.de>