fixing native compilation