Thanks a lot for the pre-processor hint, I used the -E flag and it indicated what was going wrong. Turns out, I had to use a wrapper defined by the open-source software for malloc, strdup and calloc functions.I find it surprising that it worked over the last two weeks.
Thanks again