guard from using in C project added; minor api changes