Cherry-pick part of templates/module.mk.in from lattice branch

commit f67057a9b2b765c1f89b5a22ba92d7be5e6cbcea
protect module.mk.in targets against additional execution rules
Merge branch 'master' of ssh://pktlogin.phy.tu-dresden.de/soft/users/theory/FlexibleSUSY
Replace `-std=c++11' by `-std=c++0x' in CXXFLAGS if g++ is older than 4.7
merge from Softsusy upstream