Initialize global variables and use the correct platform check for linux