Some small fixes in Libcore and Windows