Moved native source code to lib.