fixed cross compile issue