disable compiler export flags on all systems except win32
Merge branch 'master' into mac_os