add cycle count estimation if not available from _BIF
add makefile
fixing up makefile