Add NPN support to stud
config: introduce NPN option
make: fix build on OSX