do not use binary integer constants to allow compilation with gcc 4.2
added support for Darwin (Mac OS X)