Fix win and linux compile errors. Real path still isn't implemented on these platforms...