--- a/libcoyotl/command_line.cpp
+++ b/libcoyotl/command_line.cpp
@@ -30,10 +30,13 @@
 //      http://www.coyotegulch.com
 //  
 //-----------------------------------------------------------------------
 
 #include "command_line.h"
+
+#include <cstring>
+
 using namespace libcoyotl;
 
 command_line::command_line(int argc, char * argv[], const set<string> & bool_opts)
   : m_options(),
     m_inputs(),
--- a/libcoyotl/sortutil.h
+++ b/libcoyotl/sortutil.h
@@ -34,10 +34,11 @@
 //-----------------------------------------------------------------------
 
 #if !defined(LIBCOYOTL_SORTUTIL_H)
 #define LIBCOYOTL_SORTUTIL_H
 
+#include <climits>
 #include <stdexcept>
 
 namespace libcoyotl
 {
 
