add -fPIC to compiler definitions for non-windows
ignore emacs temp files #*#
add cmake of test