base64: fix compilation with win32

this is a temporary fix, we'll replace strtok_r with a custom implementation soon.