improved cmake for pxi files
minor fixes
fixes pointers in pyview