fixing issues from http://www.code.opencv.org/issues/2807
Build with OpenCV.mk for all terget fixed.
Merge pull request #593 from apavlenko:java_tutorial_fixes
Merge pull request #594 from asmorkalov:android_all_build_fix