updated build system for the osmdroid megapatch