Fix python check resetting LIBS on win32