Adding cross platform support for OS X and Linux

Signed-off-by: Simarpreet Singh <simar@linux.com>