OSX compatibility

Fix OSX compatibility. Noticed when I updated my client.