fixed to compile on OSX 10.9, dmd 2.066 & ldc2