Fixed duplicated function definition because using stub for standalone build.
Fixed warning from preprocessor elif's
Fixed warning for bad priority negated test evaluation