Minor optimization, Makefile.PL bugfix, release v0.40