Include the correct config header in libztex and include it before other includes.
diff --git a/libztex.c b/libztex.c
index 9dbe777..d48dec9 100644
--- a/libztex.c
+++ b/libztex.c
@@ -22,10 +22,11 @@
* along with this program; if not, see http://www.gnu.org/licenses/.
**/
+#include "config.h"
+
#include <stdio.h>
#include <unistd.h>
#include <string.h>
-#include <config.h>
#include "miner.h"
#include "fpgautils.h"