DROOLS-46: fixing kbuilder attach to an existing kbase
(cherry picked from commit 8d50302f22543a847c2cb248a8fd624f732df7bf)

Conflicts:

	drools-compiler/src/test/java/org/drools/integrationtests/DynamicRulesTest.java
	drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
(cherry picked from commit ce10282eb0001d72e61e5d420db8b2ec433a56dc)

Conflicts:

	drools-compiler/src/main/java/org/drools/rule/builder/dialect/java/JavaDialect.java