Merge pull request #146 from YaroslavLitvinov/dev

Dev
added -fPIC option when compile for zrt host, to be used in further by .so library
added include to fix errors when building with __ZRT_HOST enabled
fixed missusing of stdarg in fcntl