Separated windows and linux implementations.

Signed-off-by: Peter Atashian <retep998@gmail.com>