add a length argument to rf_string_count
check for existence of libcheck for unit tests, also remove local scons