TypeInterface: fix static initialization race

Change-Id: I4be58767c0b86d16cab86ead6fcd5fd2a908f101
Reviewed-on: http://gerrit.aldebaran.lan/43999
Tested-by: gerrit
Reviewed-by: pdaouadi <pdaouadi@aldebaran-robotics.com>
Export AnyObject only on MSVC (fixes android build)

Change-Id: Ie7169ceebe5315270acf6f3e0acb9c108814ef5d
Reviewed-on: http://gerrit.aldebaran.lan/43990
Reviewed-by: pdaouadi <pdaouadi@aldebaran-robotics.com>
Tested-by: pdaouadi <pdaouadi@aldebaran-robotics.com>