diff --git a/src/d_fft_fftsg.c b/src/d_fft_fftsg.c
index c9fb752..e8e295b 100644
--- a/src/d_fft_fftsg.c
+++ b/src/d_fft_fftsg.c
@@ -26,7 +26,7 @@ for another, more permissive-sounding copyright notice.  -MSP
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 #define FFTFLT double
diff --git a/src/m_binbuf.c b/src/m_binbuf.c
index f0ca69e..b084f5c 100644
--- a/src/m_binbuf.c
+++ b/src/m_binbuf.c
@@ -579,7 +579,7 @@ done:
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 #define ATOMS_ALLOCA(x, n) ((x) = (t_atom *)((n) < HUGEMSG ?  \
@@ -771,6 +771,7 @@ void binbuf_eval(t_binbuf *x, t_pd *target, int argc, t_atom *argv)
                 if (nargs == 1) pd_float(target, mstack->a_w.w_float);
                 else pd_list(target, 0, nargs, mstack);
                 break;
+            default: break;
             }
         }
         msp = mstack;
diff --git a/src/s_audio_pa.c b/src/s_audio_pa.c
index 2aa8462..a0815ce 100644
--- a/src/s_audio_pa.c
+++ b/src/s_audio_pa.c
@@ -41,7 +41,7 @@
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 #if 1
diff --git a/src/s_path.c b/src/s_path.c
index 1a0b05b..43986f9 100644
--- a/src/s_path.c
+++ b/src/s_path.c
@@ -28,7 +28,7 @@
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 #include <string.h>
diff --git a/src/x_array.c b/src/x_array.c
index 4117931..7f4c760 100644
--- a/src/x_array.c
+++ b/src/x_array.c
@@ -21,7 +21,7 @@ extern t_pd *newest;    /* OK - this should go into a .h file now :) */
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 #ifndef HAVE_ALLOCA     /* can work without alloca() but we never need it */
diff --git a/src/x_list.c b/src/x_list.c
index 811e601..fa9c675 100644
--- a/src/x_list.c
+++ b/src/x_list.c
@@ -10,7 +10,7 @@
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 #include <string.h>
 
diff --git a/src/x_misc.c b/src/x_misc.c
index 5ca3da7..aed7ce9 100644
--- a/src/x_misc.c
+++ b/src/x_misc.c
@@ -37,7 +37,7 @@
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 /* -------------------------- random ------------------------------ */
diff --git a/src/x_net.c b/src/x_net.c
index 9377a32..55b68cc 100644
--- a/src/x_net.c
+++ b/src/x_net.c
@@ -25,7 +25,7 @@
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 static t_class *netsend_class;
diff --git a/src/x_text.c b/src/x_text.c
index 4027c58..c8eee42 100644
--- a/src/x_text.c
+++ b/src/x_text.c
@@ -24,7 +24,7 @@ static t_class *text_define_class;
 #elif defined _MSC_VER
 # include <malloc.h>        /* MSVC */
 #else
-# include <stddef.h>        /* BSDs for example */
+# include <stdlib.h>        /* BSDs for example */
 #endif                      /* end alloca() ifdef nonsense */
 
 #ifndef HAVE_ALLOCA     /* can work without alloca() but we never need it */
diff --git a/src/x_time.c b/src/x_time.c
index 90cd4d5..c8c6a6e 100644
--- a/src/x_time.c
+++ b/src/x_time.c
@@ -546,6 +546,7 @@ static void hang_tick(t_hang *h)
                 outlet_pointer(p->p_outlet, w->w_gpointer);
             else pd_error(x, "pipe: stale pointer");
             break;
+        default: break;
         }
     }
     hang_free(h);
@@ -585,6 +586,7 @@ static void pipe_list(t_pipe *x, t_symbol *s, int ac, t_atom *av)
                 if (gp->gp_stub) gp->gp_stub->gs_refcount++;
             }
             gp++;
+        default: break;
         }
     }
     for (i = 0, gp = x->x_gp, gp2 = h->h_gp, p = x->x_vec, w = h->h_vec;
