Minor changes to work on android.
PROBLEM: When window orientation is set to portrait, a compiling error raises.