Get lib name through header or module

News:
- In CodeBuilder, we should use the library name not the module name
  when creating rakefile.