Modify CBForest to be compilerable by Android NDK

This changes are for compilation for Android platforms with using Android NDK.