build: Add a hack to the static build works without patches

Authored by lepagevalleeemmanuel on Feb 17 2019, 8:38 PM.