Fix compilation problem and add utility shell script to build all