Added compilation logic for property set and get.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>