Fix native compilation