[PATCH] fix cross compilation