Detect OS platform to call the right version of API "GetClassLong"