--- a/src/sim4b1.c
+++ b/src/sim4b1.c
@@ -1072,8 +1072,7 @@
 }
 
 /* heapify - core procedure for heapsort */
-static void heapify(i, last)
-int i, last;
+static void heapify(int i, int last)
 {
         int lim = (last-1)/2, left_son, small_son;
         Msp_ptr mp;
@@ -1094,8 +1093,7 @@
         }
 }
 /* smaller - determine ordering relationship between two MSPs */
-static int smaller(i, j)
-int i, j;
+static int smaller(int i, int j)
 {
 	Msp_ptr ki = msp[i], kj = msp[j];
  
--- a/src/types.h
+++ b/src/types.h
@@ -4,7 +4,7 @@
 
 #define NACHARS 128
 
-typedef int bool;
+#include <stdbool.h>
 typedef int ss_t[NACHARS][NACHARS];
 
 /* uchar is already defined in most platforms?  - but not linux at EBI */
