Fix double free on parse failure.
Add magic linker includes.