make ltpv.h compile on windows + minor change