Implement a better native code loader