I see what may cause the problem. When I compile the project in CB I got few errors that filename_*.h cannot be found (I have the filename.h files in the project). Even though the project is compiled correctly. I don't get this type of errors when I run the same command from terminal. There is probably some mistake in the makefile but it is strange than it runs without problem from the terminal.
T.