make native library buildable on linux