fixes for --enable-complex