Add lib to all targets, add instructionsForJava