fix build problems for maemo