cross compile fix by (allanc at chickenandporn dot com)