Fix a pointer crash
Updated build file