bugfix and add cmake find script