The SDL platform header shouldn't dictate the OS target API for other
applications. The build system should define the target API for building
SDL internally.
Integrated most of the NetBSD and DragonFly patches at:
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/devel/SDL/patches/
Thanks to Thomas Klausner for defailed information on the patches