Fixes some compilation issues.

This pull request cleans up the Makefile and example clients. There were several issues including:

  - Mixed library types generated -> now all depend on the platform dependent LIBTYPE
  - Name collision on different application args in example client