#48: enabled conditional compilation for managed code and private code to hide APIs accordingly