Update test to detect incorrect base usage in ApplyLinToLog, correct the bug
Remove use of seekg in CSP support to prevent an msvc10 bug with 64 bits build