Fix for issue #419
Made as_optional() visible to MSVC builds only
Merge pull request #446 from lyytinen/0.11-devel-fix-for-419

Fix for issue #419