inheritable only class + some warnings fixes for vc++