Move nef into its own library
Remove duplicate options in build