added functions to platform-nix.c
fixed build for *nix platform
Merge pull request #8 from Ceropean/master

Fixed build for *nix and added functions to platform-nix.c