scripts: adapted c_library script for obc headers