Add stub for 0.40.04 osx
Add stub globals for 0.40.04 on Linux/OSX