Fix apipie static generation on RPM build time
Merge pull request #2722 from iNecas/apipie-fix

Fix apipie static generation on RPM build time