Converted ELF-Parser onto a function format.

1. Integration with the winsock code remains