Remove unused function getWin32Handle
Fix unused function warning about generateRandomDataUrandom in mingw-w64
Fix F_PREALLOC based allocation on some OSX versions