Fixes to compile with dmd 2.066

With the latest dmd 2.066 it was not compiling without this modifications.