litec.h is for lite-C only. It's possible that it compiles with other libraries, but it certainly is not intended for them. Maybe a WIN32_LEAN_AND_MEAN definition was missing in your Code::Blocks header.
The published acknex.dll is locked to its executable, so either publish it anew whenever you compile an new executable, or use the development acknex.dll while you're developing the program.
Apart from that, I am not familiar with Code::Blocks and thus can't help with specific questions.