also apply cflags when compiling the shared library
define an instruction count constant