Fixing undefined 'pi' variable for linux