Use libglues on android. Use GLdouble instead of double where appropriate.