Msvc fixes

This fixes compilation errors and warnings with the Visual Studio 2008 compiler.

Remote test cases are also fixed. On Windows ```abs_path``` cannot be used if the file/directory does not exist. Now uses ```File::Spec->abs2rel``` instead.