add sgemm and fix some compile errors