I have finally managed to figure out the issue on stack overflow that I asked. (PHP Extension for C is failing to find function in C Library)
There was only one answer and it contained information that got me close to the final solution but not all the way there. Is the correct action to answer my own question with the full solution, comment or edit the answer that help to contain enough details to outline the full solution or some other option?