Use externs instead of foreign-libs