Started device detection
Both can now be constructed from existing HANDLEs
Now compiles without fpermissive flag