Ugly hack to make sure static libraries are usable. Without this,