Arduino is fine for libraries, build it in your sketch directory,
Once finished move it to the library folder.
Don't use IDE to create files, just create a text file directly in the sketch folder and rename it to .cpp or .h, restart the IDE and your tab is there.
The new IDE ( if one ) will most probably be released with the non-existent Due.